package com.first.homeqian.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.first.common.pojo.TbHeadNav;
import com.first.common.vo.Result;
import com.first.homeqian.mapper.HeadMapper;
import com.first.homeqian.service.HeadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: finrsteducation-parent
 * @description:
 * @author: 张玉森
 * @create: 2023-06-01 15:51
 **/
@Service
public class HeadServiceImpl implements HeadService {
    @Autowired
    private HeadMapper headMapper;
    @Override
    public Result getAllHead() {
        QueryWrapper<TbHeadNav> wrapper = new QueryWrapper<>();
        wrapper.eq("is_diable",0);
        wrapper.eq("is_delete",0);
        List<TbHeadNav> tbHeadNavs = headMapper.selectList(wrapper);
        return Result.success(tbHeadNavs);
    }
}
